Carbon


Draw1Control

Header: Controls.h Carbon status: Supported

Draws a control and any embedded controls that are currently visible in the specified window.

void Draw1Control (
    ControlRef theControl
);
theControl

A handle to the control to draw.

DISCUSSION

Although you should generally use the function UpdateControls to update controls, you can use the DrawOneControl function to update a single control. If an embedding hierarchy exists and the control passed in has embedded controls, DrawOneControl draws the control and embedded controls. If the root control for a window is passed in, the result is the same as if DrawControls was called.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)